using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.Basic
{
    [Table("T_ShopCar")]
    public class ShopCar
    {
        [Column(TypeName ="decimal(18,2)")]
         public decimal Price { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [ForeignKey("ProductId")]
        public long ProductId { get; set; }
       // [ForeignKey("ProductId")]

        /// <summary>
        /// ID 编号
        /// </summary>
      
     
      public virtual Product OwnProduct{get;set;}=null!;
        public long UserId { get; set; }

        [ForeignKey("UserId")]
       public virtual User OwnUser{get;set;}=null!;
    }
}